//接口地址信息
angular.module('starter.config', [])
.factory('ApiUrl', function () {
  var rootUrl = "http://39.108.236.45:8191/BP/api";
  var apiUrl = {
	  //web关联页面
	  webRoot:"http://39.108.236.45:8090",
	  //登陆
      loginApi: rootUrl + "/login/checkLogin",
	  //找回密码
	  forgetPasswordApi: rootUrl + '/login/forgetPassword',
      //退出
      outLoginApi: rootUrl + '/login/outLogin',
	  //版本推送管理
	  getVersionApi: rootUrl + '/login/getVersionApi',
      //获取员工列表
      getUserListApi:rootUrl +'/user/getUserList',
	  //获取组织架构信息
	  getOrgInfoApi:rootUrl +'/user/getOrgList',
      //商机列表
      chanceListApi: rootUrl + '/customerManage/chanceList',
      //客户列表
      customerListApi: rootUrl + '/customerManage/customerList',
      //数据字典列表接口
      dataItemListApi: rootUrl + '/dataItem/list',
	  //数据表单列表接口
	  dataTableListApi: rootUrl + '/dataTable/list',
      //商机添加
      saveChanceApi: rootUrl + '/customerManage/saveChance',
      //客户添加
      saveCustomerApi: rootUrl + '/customerManage/saveCustomer',
      //通知公告列表
      noticeListApi: rootUrl + '/noticeManage/noticeList',
	  //新闻列表
      newsListApi: rootUrl + '/noticeManage/newsList',
      //区域列表接口
      areaListApi: rootUrl + '/area/list',
      //商机删除
      deleteChanceApi: rootUrl + '/customerManage/deleteChance',
      //客户删除
      deleteCustomerApi: rootUrl + '/customerManage/deleteCustomer',
      //发起流程列表接口
      flowDesignListApi: rootUrl + '/flowDesign/designList',
      //发起流程添加接口
      saveFlowDesignApi: rootUrl + '/flowDesign/saveFlowDesign',
      //草稿流程列表接口
      flowRoughdraftListApi: rootUrl + '/flowRoughdraft/roughdraftList',
      //草稿流程删除接口
      deleteFlowRoughdraftApi: rootUrl + '/flowRoughdraft/deleteFlowRoughdraft',
	  //草稿流程编辑接口
      saveflowRoughdraftApi: rootUrl + '/flowRoughdraft/saveFlowRoughdraft',
      //我的流程列表接口
      flowProcessListApi: rootUrl + '/flowProcess/processList',
      //待办流程列表接口
      flowBefProcessListApi: rootUrl + '/flowBefProcess/befprocessList',
	  //待办流程ID查询接口
	  getflowProcessListApi: rootUrl + '/flowBefProcess/getprocessInfo',
      //待办流程审核接口
      saveFlowBefProcessApi: rootUrl + '/flowBefProcess/saveFlowBefProcess',
      //已办流程列表接口
      flowAftProcessListApi: rootUrl + '/flowAftProcess/aftprocessList',
      //工作委托列表接口
      flowDelegateListApi: rootUrl + '/flowDelegate/delegateList',
	  //创建待办接口
	  flowProcessCreateApi: rootUrl + '/flowLaunch/getflowjson',
	  //审批待办接口
	  flowProcessGetApi: rootUrl + '/flowProcess/getprocessschemeentitybynodeId',
	  //首页公告信息
	  getAnnouncesListApi : rootUrl + '/noticeManage/announcesList',
	  //首页公告信息
	  getChartsApi : rootUrl + '/baseManage/chartsList',
	  //修改密码
	  saveModifyPasswordApi : rootUrl + '/user/modifyPassword',
	  //修改头像
	  saveModifyUserFaceApi : rootUrl + '/user/modifyFace',
	  //修改联系信息
	  saveContactInfoApi : rootUrl + '/user/modifyContactInfo',
	  //动态列表信息获取
	  geFormContentApi : rootUrl + '/formManage/getFormContentJson',
	  //动态列表数据获取
	  geFormDataApi : rootUrl + '/formManage/getInstancePageList',
	  //获取单据编码
	  getBillCodeApi : rootUrl + '/formManage/getBillCode',
	  //数据唯一性校验
	  getUniqueCode : rootUrl + '/formManage/getUniqueCode',
	  //文件上传接口
	  uploadFileApi : rootUrl + '/formManage/uploadFileApi',
	  //获取表单
	  getInstanceEntityJsonApi : rootUrl + '/formManage/getInstanceEntityJson',
	  //提交表单
	  saveInstanceEntityJsonApi : rootUrl + '/formManage/saveInstanceEntityJson',
	  //删除表单数据 
	  removeInstanceFormApi: rootUrl + '/formManage/removeInstanceForm',
	  //获取流程数据 
	  getProcessJsonApi: rootUrl + '/formManage/getProcessJson',
	  //获取流程表单数据 
	  getFormEntityJsonApi: rootUrl + '/formManage/getFormEntityJson',
	  //发起流程接口
	  createProcessApi: rootUrl + '/flowManage/createProcess',
	  //获取客户数据列表接口
	  getCrmListApi: rootUrl + '/crmManage/getCrmList',
	  //获取客户数据列表接口
	  getCrmInfoApi: rootUrl + '/crmManage/getCrmInfo',
	  //流程审批处理
	  getProcessSchemeEntityByNodeIdApi: rootUrl + '/flowManage/getProcessSchemeEntityByNodeId',
	  //流程审批
	  verificationProcessApi: rootUrl + '/flowManage/VerificationProcess',
	  //待办统计接口
	  flowProcessCountApi: rootUrl + '/flowManage/getflowcountjson',
	  //草稿数据接口
	  getRoughdraftInfoJsonApi: rootUrl + '/flowManage/getRoughdraftInfoJson',
	  //草稿数据提交
	  editionRoughdraftProcessApi: rootUrl + '/flowManage/editionRoughdraftProcess',
	  //fir 自动更新地址
	  firimApi: 'http://api.fir.im/apps/latest/59dd949cca87a80fe2000089?api_token=71d196d999501fcce1466b413096d0ea'
	  
  };
  return apiUrl;
})
.factory('SignalrUrl',function(){
    return "http://39.108.236.45:8981/signalr";
})
;
